Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify create_credential parameters and remove RevocationRegistryId #239

Merged
merged 5 commits into from
Sep 8, 2023

Conversation

andrewwhitehead
Copy link
Member

@andrewwhitehead andrewwhitehead commented Sep 5, 2023

As far as I understand, there's no such thing as a RevocationRegistryId, since RevocationRegistryDefinitionId covers that usage (for example, see within the Credential structure). Looking at the unit tests they seem to have been used interchangeably. If anything, I think there would need to be a RevocationStatusListId instead. So this PR removes RevocationRegistryId and just uses RevocationRegistryDefinitionId in its place.

When issuing via create_credential, the revocation registry definition ID can be taken from the status list object.

The Python wrapper is updated, but I haven't looked at updating the JS wrappers yet.

@andrewwhitehead andrewwhitehead changed the title Simplify create_credential parameters, remove RevocationRegistryId, Simplify create_credential parameters and remove RevocationRegistryId Sep 5, 2023
Copy link
Member

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to the wrapper seem minimal (besides formatting). @genaris do you have time to update this in the JS wrapper?

@genaris
Copy link
Contributor

genaris commented Sep 7, 2023

Changes to the wrapper seem minimal (besides formatting). @genaris do you have time to update this in the JS wrapper?

I always have time for my beloved anoncreds-rs JS wrapper 😄.

@genaris
Copy link
Contributor

genaris commented Sep 8, 2023

@andrewwhitehead FYI I submitted a PR to this branch updating JS wrappers according to these new changes: andrewwhitehead#1

fix(js): update create credential parameters
@andrewwhitehead andrewwhitehead merged commit 5fa7add into hyperledger:main Sep 8, 2023
25 checks passed
@andrewwhitehead andrewwhitehead deleted the upd/rev-reg-id branch September 8, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants